package com.hmall.search.service;

import com.hmall.common.dto.ItemDoc;
import com.hmall.common.dto.PageDTO;
import com.hmall.search.pojo.RequestParams;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface SearchService {
    List<String> getSuggest(String key) throws IOException;

    Map<String, List<String>> getFilters(RequestParams param) throws IOException;

    PageDTO<ItemDoc> getList(RequestParams param) throws IOException;

    void addDoc(String jsonStr) throws IOException;

    void deleteDoc(String id) throws IOException;
}
